﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Core.DBUtility;
using AutoMapper;
using Microhard.Plat.CRM.Stores.DataAccess;
using Microhard.Plat.CRM.Stores.Models;

namespace Microhard.Plat.CRM.Stores.DTO
{
    public class FMCGServerMapBuilder : IDTOBuilder
    {
        public void MappingBuild()
        {

            #region KA
            Mapper.CreateMap<KAModel, KA>();
            Mapper.CreateMap<KA, KAModel>();
            #endregion

            #region SubKA
            Mapper.CreateMap<SubKAModel, SubKA>();
            Mapper.CreateMap<SubKA, SubKAModel>();
            #endregion

            #region CheckIn
            Mapper.CreateMap<CheckinModel, EmployeeCheckIn>();
            Mapper.CreateMap<EmployeeCheckIn, CheckinModel>();
            #endregion

            #region IspTemplate
            Mapper.CreateMap<IspTemplateModel, CheckListTemplate>();
            Mapper.CreateMap<CheckListTemplate, IspTemplateModel>();
            #endregion

            #region IspCategory
            Mapper.CreateMap<IspCategoryModel, CheckListTemplateCategory>();
            Mapper.CreateMap<CheckListTemplateCategory, IspCategoryModel>();
            #endregion

            #region IspItem
            Mapper.CreateMap<IspItemModel, CheckListTemplateItem>();
            Mapper.CreateMap<CheckListTemplateItem, IspItemModel>();
            #endregion

            #region IspTemplateAnswer
            Mapper.CreateMap<IspTemplateAnswerModel, CheckListTemplateAnswer>();
            Mapper.CreateMap<CheckListTemplateAnswer, IspTemplateAnswerModel>();
            #endregion

            #region ProductDisplayImage
            Mapper.CreateMap<ProductDisplayImageModel, ProductDisplayImage>();
            Mapper.CreateMap<ProductDisplayImage, ProductDisplayImageModel>();
            #endregion


        }
    }
}
